package featureExtractors;

import pdi.IImg2ImgOperation;
import pdi.core.Image;

public abstract class AbstractFeatureExtraction implements IImg2ImgOperation {

	protected abstract double[] extractFeature(Image candidate);

	@Override
	public Image execute(Image img) {
		
		double[] features = extractFeature(img);
		img.setFeatureVector(features);
		
		return img;
	}
	
	

}
